package com.bwie.remote;

import com.bwie.common.domain.request.ShopListRequest;
import com.bwie.common.domain.response.ShopListResponse;
import com.bwie.common.result.PageResult;
import com.bwie.common.result.Result;
import com.bwie.remote.fallback.RemoteShopServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 店铺远程
 *
 * @author liuwenliang
 * @version 1.0
 * @date 2025/9/9
 */
@FeignClient(value = "bwie-shop" , fallbackFactory = RemoteShopServiceFallback.class)
public interface RemoteShopService {


    /**
     * 店铺列表，分页
     * @param shopListRequest
     * @return 列表
     */
    @PostMapping("/shop/getShopList")
    public Result<PageResult<ShopListResponse>> getShopList (@RequestBody ShopListRequest shopListRequest);
}
